<?php

namespace app\index\model;

use think\Model;
use app\index\model\User1;
use app\index\model\Report;
use app\index\model\Comment;
use think\facade\Session;
class Luntan extends Model
{
    protected $table = 'luntan';
   public function user(){
       $id=Session::get('comment_id');
       echo $id;

       $user_id=Comment::whereIn('comment_id',$id)->column('user_id');


       $arr=User1::alias('u')
           ->join('comment c','u.id=c.user_id')
           ->whereIn('u.id',$user_id)->where('c.comment_id',$id)->select()->toArray();
      return $arr;

   }
}
